<div class="center_content">
    <div class="center_title_bar">Register</div>
    <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
            <div class="register_form">
                <?php if (Yii::app()->user->hasFlash('register')): ?>
                    <div class="flash-success">
                        <?php echo Yii::app()->user->getFlash('register'); ?>
                    </div>
                <?php else: ?>
                    <?php
                    $form = $this->beginWidget('CActiveForm', array(
                        'id' => 'register-form',
                        'enableAjaxValidation' => true,
                    ));
                    ?>     
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'username', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->textField($model, 'username', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'username'); ?> </font>
                    </div>

                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'password', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->PasswordField($model, 'password', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'password'); ?> </font>
                    </div>

                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'repassword', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->PasswordField($model, 'repassword', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'repassword'); ?> </font>
                    </div>

                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'email', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->textField($model, 'email', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'email'); ?> </font>
                    </div>
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'birthday', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->dateField($model, 'birthday', array('class' => 'register_birthday')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'birthday'); ?> </font>
                    </div>
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'address', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->textField($model, 'address', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'address'); ?> </font>
                    </div>
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'phone', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->textField($model, 'phone', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'phone'); ?> </font>
                    </div>
                    <?php if (CCaptcha::checkRequirements()): ?>
                        <div class="form_row">
                            <strong>
                                <?php echo $form->labelEx($model, 'verifyCode', array('class' => 'register')); ?>
                            </strong>
                            <div>
                                <?php $this->widget('CCaptcha'); ?>
                                <?php echo $form->textField($model, 'verifyCode'); ?>
                            </div>
                        </div>
                    <?php endif; ?>
                    <div align="center" class="form_row">
                        <?php echo CHtml::submitButton(Yii::t('register', 'Submit'), array("class" => "register1")); ?>
                        <?php echo CHtml::resetButton(Yii::t('register', 'Reset'), array("class" => "register1")); ?>
                    </div>
                    <?php $this->endWidget(); ?>
                <?php endif; ?>
            </div> 
        </div>
        <div class="bottom_prod_box_big"></div>
    </div>
</div>